Fits an outline path around images in the template layer.